import { request } from "./request";

/** 登录 */
export const LoginApi = (data) => {
  return request({ url: `/user/login`, method: "POST", data });
};

/** 添加历史记录 */
export const addHistoryApi = (data) => {
  return request({ url: `/memberCenter/info`, method: "GET", data });
};

/** 追剧 */
export const addFavoriteApi = (data) => {
  return request({ url: `/userWatch/updateWatch`, method: "POST", data });
};

/** 取消追剧 */
export const delFavoriteApi = (data) => {
  return request({ url: `/userWatch/stop`, method: "POST", data });
};

/** 解锁剧集 */
export const unLockApi = (data) => {
  return request({ url: `/md-his-free/list`, method: "GET", data });
};

/** 记录用户数据 埋点 */
export const addPointApi = (data) => {
  return request({ url: `/md-dyxcx/add`, method: "GET", data });
};

/** 记录用户ltv数据 埋点 */
export const addLtvApi = (data) => {
  return request({ url: `/md-dyxcx/addLtv`, method: "GET", data });
};

/** 获取用户卡点规则 */
export const getFreeRule = (data) => {
  return request({ url: `/md-getFreeRule/get`, method: "GET", data });
};
